package com.redrose.flutterdemo;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;
import com.redrose.flutterdemo.utils.CrashHandler;
import com.redrose.flutterdemo.utils.GlideUtils;
import com.redrose.flutterdemo.utils.SPUtils;

import org.litepal.LitePalApplication;

/**
 * Desc:
 *
 * @author: RedRose
 * Date: 2019/5/19 0019
 * Email: yinsxi@163.com
 */
public class BaseApplication extends LitePalApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        if (BuildConfig.DEBUG) {
            ARouter.openLog();
            ARouter.openDebug();
        }
        ARouter.init(this);
        SPUtils.init(this);
        GlideUtils.init(this);
        CrashHandler.getIntance().init(this);
    }
}
